package com.example.shardingspheredemo.model.t.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shardingspheredemo.model.t.entity.ClassEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Andrew Yang
 * @ClassName ClassMapper
 * @Description
 * @Package com.example.shardingspheredemo.model.t.mapper
 * @create 2020-09-14 11:39
 */
public interface ClassMapper extends BaseMapper<ClassEntity> {
    /**
     * 批量插入
     *
     * @param list 插入集合
     * @return 插入数量
     */
    int insertForeach(List<ClassEntity> list);
}
